#ifndef DATETIME_PERIOD_HH
#define DATETIME_PERIOD_HH

#include <boost/date_time/posix_time/posix_time.hpp>

//Create a simple period class to contain all the times in a day

class daytime_period : public boost::posix_time::time_period
{
   public:
	   daytime_period(boost::gregorian::date d) : boost::posix_time::time_period(boost::posix_time::ptime(d),//midnight
		   boost::posix_time::ptime(d,boost::posix_time::hours(24)))
      {}
};


class date_input_string
{
  public:

   static boost::gregorian::date const to_date(std::string const& s, char const* fmt ="%d/%m/%Y"); //default Italian localization 

  protected:
    static bool is_feasible_string(std::string const& str, char _sep = '/'); 
    static boost::gregorian::date const from_it_string(std::string const& s, char _sep = '/'); //default Italian localization 

  private:
     
};



#endif

